package com.situ.day7;

public class Teacher extends Person{
//    private int id;
//    private String name;
//    private int age;
    //特有的
    private double salary;

    public Teacher(double salary) {
        this.salary = salary;
    }

    public Teacher(int id, String name, int age, double salary) {
        super(id, name, age);
        this.salary = salary;
    }

    public void teach() {
        System.out.println(name + "正在教学");
    }

    @Override
    public void show() {
        System.out.println("Teacher.show");
    }
}
